| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

JpgEncoder.h
1 // JpgEncoder.h
3 //
5
6 namespace nkImages
7 {
11 class JpgEncoder final
12 {
13 public :
14
15 // Compression
23 static nkMemory::Buffer encode (const ImageView& image, const JpgCompressionSettings& settings = JpgCompressionSettings()) ;
24
25 // Decompression
33 static bool canDecode (nkMemory::BufferView<unsigned char> data) ;
51 static Image decode (nkMemory::BufferView<unsigned char> data, const AlignmentDescriptor& alignmentDescriptor = AlignmentDescriptor()) ;
52 } ;
53 }
nkImages::JpgCompressionSettings
Describes available settings for Jpeg encoding queries.
Definition: JpgCompressionSettings.h:12
nkMemory::BufferView< unsigned char >
nkImages::ImageView
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
nkImages::JpgEncoder::encode
static nkMemory::Buffer encode(const ImageView &image, const JpgCompressionSettings &settings=JpgCompressionSettings())
nkImages::JpgEncoder::canDecode
static bool canDecode(nkMemory::BufferView< unsigned char > data)
nkImages::JpgEncoder::decode
static Image decode(nkMemory::BufferView< unsigned char > data, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor())
nkImages::JpgEncoder
Offers capabilities to encode and decode JPEG format.
Definition: JpgEncoder.h:12
nkMemory::Buffer
A buffer holding binary data.
Definition: Buffer.h:32
nkImages::AlignmentDescriptor
Holds information about alignment constraints.
Definition: AlignmentDescriptor.h:12
nkImages
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
nkImages::Image
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14